import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from './util/httpRequest'
import qs from 'qs';

Vue.prototype.http=axios;

Vue.use(ElementUI);
Vue.config.productionTip = false
Vue.prototype.qs = qs;


axios.defaults.baseURL='http://176.130.25.2:9101'

// 全局导航守卫
router.beforeEach((to, from, next) => {
  // 跳转前滚动到页面顶部
  window.scrollTo(0, 0);
  next();
});

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
